<template>
  <div>
    <h2>电影列表</h2>
    <movie-item
      @click="jumpDetail(item.id)"
      v-for="item of lists"
      :key="item.id"
      :item="item"
    ></movie-item>
  </div>
</template>

<script setup>
import MovieItem from "./components/MovieItem.vue";
import useMovieHook from "./Hooks/useMovieHook";
import useJumpHook from "./Hooks/useJumpHook";
const { lists } = useMovieHook();
const { jumpDetail } = useJumpHook();
</script>

<style scoped></style>
